let ApiClient = require('../index.js').ApiClient;

let client = new ApiClient({
    'appkey': '28186837',
    'appsecret': '60cae6b34690bd0990641fd4f2faa4c0',
    'url': 'http://gw.api.taobao.com/router/rest'
});

let params = { q: '隔离防晒', page_no: '1', page_size: '100', adzone_id: '111116350433', start_dsr: 40000, sort: "total_sales_des" }

function callback(error, response) {
    let { map_data } = response.result_list
    map_data.forEach((item,index) => {
        console.log(index,item.short_title, item.shop_dsr);
    });
    console.log(map_data[0]);
}

// client.execute('taobao.tbk.dg.material.optional', params, callback)
